<div class="runs form">
<?php echo $this->Form->create(null, array('url' => array('controller' => 'massswap', 'action' => 'step1'))); ?>
	<fieldset>
 		<legend><?php __('Start new Run'); ?></legend>
 		<?php echo $this->Form->hidden('id', array('value' => 'adfghadfga')); ?>
 		<?php
 		   $options = array(); $y = 0;
		   $result = mysql_query("SELECT * FROM projects WHERE active = 1");
		   while($row = mysql_fetch_array($result)){
				$options[$row["id"]] = $row["name"];
				IF($row["default"] == 1) { $select = $row["id"]; }	
				$y++;	
			}
			$selected = $select
 		?>
 		<?php echo $this->Form->select('projectid',$options, $selected); ?>
		<?php echo $this->Form->end(__('Submit', true));?>	
	</fieldset>
</div>